package zouhaotian.rbac.dao;

import zouhaotian.rbac.domain.entity.BaseEntity;

import java.util.Collection;


/**
 * 数据访问层
 *
 * @auther 邹昊天
 * @since 2025/6/21 20:14
 */
public interface IBaseDao<Entity extends BaseEntity> {

    Collection<Entity> list();

    boolean existsById(int id);

    Entity findById(int id);

    Entity save(Entity entity);

    Entity delete(int id);
}
